import request from '@/utils/request'

// 用户列表
export function getUserList(params: any) {
    return request.get({ url: '/user.user/lists', params }, { ignoreCancelToken: true })
}

// 用户详情
export function getUserDetail(params: any) {
    return request.get({ url: '/user.user/detail', params })
}

// 用户编辑
export function userEdit(params: any) {
    return request.post({ url: '/user.user/edit', params })
}
// 用户新增
export function userAdd(params: any) {
    return request.post({ url: '/user.user/add', params })
}
// 用户删除
export function userdel(params: any) {
    return request.post({ url: '/user.user/del', params })
}

// 获取用户token
export function getUserToken(params: any) {
    return request.get({ url: '/user.user/getUserToken', params })
}

// 充值套餐
export function recharge(params: any) {
    return request.post({ url: '/user.user/recharge', params })
}

// OEM详情
export function user_oem_detail(params: any) {
    return request.get({ url: '/user.user_oem/detail', params })
}
// OEM修改
export function user_oem_edit(params: any) {
    return request.post({ url: '/user.user_oem/edit', params })
}